#ifndef NVS_DRIVER_H
#define NVS_DRIVER_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Product_Config.h"

#include "esp_system.h"
#include "nvs_flash.h"
#include "../LOG.h"

u8 driver_nvs_init();
esp_err_t driver_nvs_part_init();
esp_err_t driver_nvs_part_write_str(const char *str_key,const char *str_val);
esp_err_t driver_nvs_part_read_str(const char *str_key,char *str_get_val,size_t *str_val_len);
esp_err_t driver_nvs_part_write_u8(const char *str_key,u8 *u8_val);
esp_err_t driver_nvs_part_read_u8(const char *str_key,u8 *u8_val);
#endif 